import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpUsersAnnex {
  id!: number;
  annexId!: number;
  userId!: number;
  time?: string;
  uniacid!: number;
  buyType!: boolean;
}

export const ImsYzdKpUsersAnnexSchema = new EntitySchema({
  class: ImsYzdKpUsersAnnex,
  properties: {
    id: { primary: true, type: 'number' },
    annexId: { type: 'number' },
    userId: { type: 'number' },
    time: { type: 'string', length: 255, nullable: true },
    uniacid: { type: 'number' },
    buyType: { type: 'boolean' },
  },
});
